package com.ljm.boot.helloword.simpleStudy.springBoot;

import com.ljm.boot.helloword.simpleStudy.springBoot.annotation.ComponentScan;
import com.ljm.boot.helloword.simpleStudy.springBoot.context.ThrobApplicationContext;
import com.ljm.boot.helloword.simpleStudy.springBoot.service.UserService;

@ComponentScan("com.ljm.boot.helloword.simpleStudy.springBoot")
public class StudySpringBootApplication {

    public static void main(String[] args) {
        ThrobApplicationContext context = new  ThrobApplicationContext(StudySpringBootApplication.class);
        UserService userService = (UserService) context.getBean("userService");
        System.out.println(userService);
        userService.test();
    }
}
